#!/usr/bin/env python3

from share import *
from scan import scan_block, TxAlertData

# finish 6335000 ~ 6391179
if __name__ == '__main__':
  from_block = 6400835
  to_block = 0 # set an end

  current = from_block
  while current <= to_block:
    logging.info(f'scan start: {current}')
    scan_block(current)
    logging.info(f'scan finished: {current}')
    current += 1